package io.qar.dishes.entity;

import io.qar.tags.entity.TagsEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import io.qar.commons.mybatis.entity.ZyDateAtBaseEntity;

/**
 * 菜品信息表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zy_dishes")
public class DishesEntity extends ZyDateAtBaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long dishId;
    /**
     * 菜品名称
     */
    private String name;
    /**
     * 菜品描述
     */
    private String description;
    /**
     * 菜品价格
     */
    private BigDecimal price;
    /**
     * 菜品图片URL
     */
    private String imageUrl;
    /**
     * 缩略图
     */
    private String thumbnailUrl;
    /**
     * 菜品是否在售
     */
    private Integer isActive;
    /**
     * 分类ID
     */
    private Long categoryId;
    /**
     * 是否已删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String tagNames;
    @TableField(exist = false)
    private String flavorValues;

}